<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		},
		async onLoad(options) {
			//接收传值,id里面放的是标题，因为测试数据并没写id 
			let orderSn = options;
			if (orderSn) {
				console.log(orderSn);
				//走后端获取参数
				uni.request({
					url: this.$ip+'/BusDetails/product/'+id,
					success: res => {
						if (res.data.code == 20000) {
							this.commoditys = res.data.data.commodity;
							this.details = res.data.data.BusDetails;
							this.selectSpec(0);
						}
					}
				})
			}
		
		},
	}
</script>

<style>

</style>
